package main

import (
	"fmt"
	"math/cmplx"
)

func variableZeroValue() {
	var a int // uint int bool string float complex byte rune
	var s string
	fmt.Printf("%d, %q\n", a, s)
}

func variableInitialValue() {
	var a int = 3
	var c bool = false
	var s string = "abc.txt"
	fmt.Println(a, c, s)
}

func variableTypeDeduction() {
	var a = 3
	var c = false
	var s = "kkk"
	fmt.Println(a, c, s)
}

// type of t
func variableShorter() {
	a, b, c, d := 3, 4, 12.3, cmplx.Abs(123)
	fmt.Println(a, b, c, d)
}

func main() {
	variableZeroValue()
	variableInitialValue()
	variableTypeDeduction()
	variableShorter()
}
